package com.buba.service.impl;

import com.buba.dao.RoleMapper;
import com.buba.pojo.Role;
import com.buba.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> selA() {
        return roleMapper.selA();
    }



    @Override
    public List<Integer> sel(Integer roleId) {
        return roleMapper.selB(roleId);
    }

    @Override
    public int addRole(String roleName) {
        return roleMapper.addRole(roleName);
    }

    @Override
    public int del(String roleId) {
        return roleMapper.del(roleId);
    }

    @Override
    public int delete(String valueOf) {
        return roleMapper.delete(valueOf);
    }

    @Override
    public int cun(Map<String, Object> map) {
        return roleMapper.cun(map);
    }

}
